<%-- 
    Document   : tinhthoigian
    Created on : 29-09-2011, 22:10:53
    Author     : Mr-Nguyen
--%>

<%@page import="java.text.DateFormat"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.util.Date"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%
    String ngay = request.getParameter("ngay");
    String[] ymd = ngay.split("-");
    int year = Integer.parseInt(ymd[0]);
    int month = Integer.parseInt(ymd[1]);
    int date = Integer.parseInt(ymd[2]);
    String n = String.valueOf(month) + "/" + String.valueOf(date) + "/"+String.valueOf(year);
%>
<table width="100%" border="0" background="Images/backngang.gif">
    <tr>
        <td width="4%" >
            <img src="Images/donghocat.jpg" width="30" height="30" />
        </td>
        <td width="93%">Thời gian còn lại:</td>
    </tr>
    <tr>
        <td height="26" colspan="2">
                <script language="JavaScript">
                TargetDate = "<%= n %> 5:00 AM";
                BackColor = "palegreen";
                ForeColor = "navy";
                CountActive = true;
                CountStepper = -1;
                LeadingZero = true;
                DisplayFormat = "%%D%%ngày, %%H%%giờ, %%M%%phút, %%S%%giây.";
                FinishMessage = "Hết hạn!";
                </script>
                <script language="JavaScript" src="js/countdown.js"></script>
        </td>
    </tr>
</table>
